package com.cskaoyan.bean.chaosbean.goods.vo;

import com.cskaoyan.bean.po.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author dengqwe
 * @datetime 2023/1/2 22:13
 * @description: TODO:
 */
@NoArgsConstructor
@Data
public class WxGoodsDetailVo {


    private List<SpecificationListDTO> specificationList;
    private List<MarketGroupon> groupon;
    private List<MarketIssue> issue;
    private Integer userHasCollect;
    private String shareImage;
    private CommentDTO comment;
    private Boolean share;
    private List<MarketGoodsAttribute> attribute;
    private MarketBrand brand;
    private List<MarketGoodsProduct> productList;
    private MarketGoods info;

    @NoArgsConstructor
    @Data
    public static class CommentDTO {
        private List<MarketComment> data;
        private Integer count;




    }


    @NoArgsConstructor
    @Data
    public static class InfoDTO {
        private Integer id;
        private String goodsSn;
        private String name;
        private Integer categoryId;
        private Integer brandId;
        private List<String> gallery;
        private String keywords;
        private String brief;
        private Boolean isOnSale;
        private Integer sortOrder;
        private String picUrl;
        private String shareUrl;
        private Boolean isNew;
        private Boolean isHot;
        private String unit;
        private Integer counterPrice;
        private Integer retailPrice;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
        private String detail;
    }

    @NoArgsConstructor
    @Data
    public static class SpecificationListDTO {
        private String name;
        private List<MarketGoodsSpecification> valueList;

        @NoArgsConstructor
        @Data
        public static class ValueListDTO {
            private Integer id;
            private Integer goodsId;
            private String specification;
            private String value;
            private String picUrl;
            private String addTime;
            private String updateTime;
            private Boolean deleted;
        }
    }

    @NoArgsConstructor
    @Data
    public static class IssueDTO {
        private Integer id;
        private String question;
        private String answer;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }

    @NoArgsConstructor
    @Data
    public static class AttributeDTO {
        private Integer id;
        private Integer goodsId;
        private String attribute;
        private String value;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }

    @NoArgsConstructor
    @Data
    public static class ProductListDTO {
        private Integer id;
        private Integer goodsId;
        private List<String> specifications;
        private Integer price;
        private Integer number;
        private String url;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }
}

